package com.cet.designpatterns.mediator;

/**
 * @program: algorithm
 * @description: 同事抽象类
 * @author: 陈恩涛
 * @create: 2021-09-23 10:24
 **/
public abstract class Colleague {

    private Mediator mediator;
    public String name;

    public Colleague(Mediator mediator, String name) {
        this.mediator = mediator;
        this.name = name;
    }

    public Mediator getMediator() {
        return this.mediator;
    }

    public abstract void sendMessage(int stateChange);
}
